//
//  GYInvoice.m
//  GoodLuck
//
//  Created by apple on 2018/3/28.
//  Copyright © 2018年 yunjiazhineng. All rights reserved.
//

#import "GYInvoice.h"

@implementation GYInvoice

+(NSArray *)jsonInvoiceInfo:(NSArray *)source {
    NSMutableArray *models = [NSMutableArray array];
    for (NSDictionary *dic in source) {
        GYInvoice *invoice = [[GYInvoice alloc] initWithDic:dic];
        [models addObject:invoice];
    }
    
    return models;
}

- (instancetype)initWithDic:(NSDictionary *)dic {
    self = [super init];
    if (self) {
        
        [self setValuesForKeysWithDictionary:dic];
    }
    return self;
}

- (void)setValue:(id)value forUndefinedKey:(NSString *)key {
  
}

@end
